package com.xlro.servlet;

import com.mysql.cj.Session;
import com.xlro.domain.Book;
import com.xlro.service.BookService;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.ArrayList;

@WebServlet(name = "SearchBookServlet",urlPatterns = "/searchBook")
public class SearchBookServlet extends HttpServlet {
    private BookService bookService = new BookService();

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//        ArrayList<Book> books = bookService.getAllBooks();
//        req.setAttribute("books",books);

//        req.get

    }
}
